---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: {{ include "postgres-cluster.serviceAccountName" . }}
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: {{ include "postgres-cluster.serviceAccountName" . }}
subjects:
- kind: ServiceAccount
  name: {{ include "postgres-cluster.serviceAccountName" . }}
